package com.huangliusong.desigin.principle.singleresponsbility;

/**
 * @author huangliusong
 * @since 2018/10/9
 * {@link }
 */
public class Method {
    private void updateUserInfo(String userName,String address){
        userName="hls";
        address="2333number";
    }
    private void updateUserInfo(String userName,String... properties){
       //可变长参数
    }
    private void updateUserName(String userName){
        userName="huangliusong";
    }

    private void updateAddress(String address){
        address="beijing";
    }

    private void updateUserInfo(String userName,String address,boolean bool){
        if (bool){
          //TODO
        }else {

        }
        userName="hls";
        address="2333number";
    }
}
